package com.mt.app;

import com.mt.bean.User;
import com.mt.dao.UserMapper;
import com.mt.sqlsession.MySqlsession;

/**
 * @Author : fang.com
 * @CreatTime : 2020-12-07 15:36
 * @Description :
 * @Version :  0.0.1
 */
public class TestMybatis {

    public static void main(String[] args) {
        MySqlsession sqlsession = new MySqlsession();
        UserMapper mapper = sqlsession.getMapper(UserMapper.class);
        User user = mapper.getUserById("1");
        System.out.println(user);
    }
}
